package cn.seem.advice;

import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.stereotype.Component;

@Aspect
@Component
public class XXAdvice {
    //-- 定义一个通用切点
    @Pointcut(value = "execution(public * cn.seem.service.*.*(..))")
    public void point1(){

    }

    @Before(value = "point1()")
    public void beforeAdvice(JoinPoint joinPoint){
        System.out.println(joinPoint.getSignature().getName() + "前置增强！@");
    }

}
